home *** CD-ROM | disk | FTP | other *** search
/ Chip 2001 June / CHIP Haziran 2001.iso / prog / share / 04 / setup.exe / MM6.Cab / F2352_DeleteCookie.action.F6A680DD_F3FB_4CF3_BABB_0D0F06E630F5 < prev    next >
Text File  |  2000-08-17  |  4KB  |  90 lines

  1. <html>
  2.  
  3.     <head>
  4.         <meta http-equiv="content-type" content="text/html;charset=iso-8859-1">
  5.         <title>Delete Cookie action</title>
  6.         <meta name="generator" content="Adobe GoLive 5">
  7.     </head>
  8.  
  9.     <body bgcolor="white">
  10.         <center>
  11.             <font size="6">DeleteCookie Action 1.0</font>
  12.             <p>© 1999, Adobe Systems Incorporated<br>
  13.             All rights reserved.</p>
  14.             <p>Script by Cédric Ménard</p>
  15.             <hr>
  16.         </center>
  17.         <csactionclass name="DeleteCookie" function="CSDeleteCookie" nsversion="3" ieversion="4">
  18.         <csactionparam name="nom" type="GLActionStringParam"></csactionparam>
  19.         </csactionclass>
  20.         <p>
  21.         <script language="JavaScript1.2"><!--
  22. // Script copyright 1999, Adobe Systems Incorporated. All rights reserved.
  23.  
  24. function CSDeleteCookie(action) 
  25. {
  26. var name=action[1]
  27. var value=action[2]
  28. var jours=-12000
  29. path="/"
  30. domain=null
  31. var expdate = new Date ();
  32. expdate.setTime (expdate.getTime() + (jours * 60 * 60 * 1000));
  33. SetCookie(name,value,expdate)
  34. }
  35.  
  36. function SetCookie (name, value) {
  37.   var argv = SetCookie.arguments;
  38.   var argc = SetCookie.arguments.length;
  39.   var expires = (argc > 2) ? argv[2] : null;
  40.   var secure = (argc > 5) ? argv[5] : false;
  41.   document.cookie = name + "=" + escape (value) +
  42.     ((expires == null) ? "" : ("; expires=" + expires.toGMTString())) +
  43.     ((path == null) ? "" : ("; path=" + path)) +
  44.     ((domain == null) ? "" : ("; domain=" + domain)) +
  45.     ((secure == true) ? "; secure" : "");
  46. }
  47. // -->
  48.         </script>
  49.          </p>
  50.  
  51.         <table cool width="221" height="96" border="0" cellpadding="0" cellspacing="0" gridx="16" showgridx gridy="16" showgridy bgcolor="#eeeeee">
  52.             <tr height="1" cntrlrow>
  53.                 <td width="1" height="1"><spacer type="block" width="1" height="1"></td>
  54.                 <td width="4" height="1"><spacer type="block" width="4" height="1"></td>
  55.                 <td width="76" height="1"><spacer type="block" width="76" height="1"></td>
  56.                 <td width="140" height="1"><spacer type="block" width="140" height="1"></td>
  57.             </tr>
  58.             <tr height="6">
  59.                 <td width="1" height="6"><spacer type="block" width="1" height="6"></td>
  60.                 <td width="4" height="6"><spacer type="block" width="4" height="6"></td>
  61.                 <td width="76" height="6"><spacer type="block" width="76" height="6"></td>
  62.                 <td width="140" height="6"><spacer type="block" width="140" height="6"></td>
  63.             </tr>
  64.             <tr height="3">
  65.                 <td width="1" height="3"><spacer type="block" width="1" height="3"></td>
  66.                 <td width="4" height="3"><spacer type="block" width="4" height="3"></td>
  67.                 <td width="76" height="3"><spacer type="block" width="76" height="3"></td>
  68.                 <td width="140" height="27" colspan="1" rowspan="2" valign="top" align="left" xpos="80">
  69.                     <csactioncntrl name="nom" x="80" y="6" width="136" height="17" alignx="scale" aligny="top">
  70.                 </td>
  71.             </tr>
  72.             <tr height="24">
  73.                 <td width="1" height="24"><spacer type="block" width="1" height="24"></td>
  74.                 <td width="4" height="24"><spacer type="block" width="4" height="24"></td>
  75.                 <td width="76" height="24" colspan="1" rowspan="1" valign="top" align="left" xpos="4">
  76.                     <csactioncntrl type="InfoText" value="Cookie name" x="4" y="9" width="73" height="14" alignx="left" aligny="top">
  77.                 </td>
  78.             </tr>
  79.             <tr height="62">
  80.                 <td width="1" height="62"><spacer type="block" width="1" height="62"></td>
  81.                 <td width="4" height="62"><spacer type="block" width="4" height="62"></td>
  82.                 <td width="216" height="62" colspan="2" rowspan="1" valign="top" align="left" xpos="4">
  83.                     <csactioncntrl type="InfoText" value="This action will delete an existing cookie. Enter its name below." x="4" y="33" width="212" height="29" alignx="scale" aligny="top">
  84.                 </td>
  85.             </tr>
  86.         </table>
  87.     </body>
  88.  
  89. </html>
  90.